
    <section class="categories">
    <h2><?php echo $this->t("All Categories")?></h2>    
<ul> 

    <?php
    
    
    	$list = Model_Category::getLevel1()->sort(array('nm_en'=>1));//array('homepage' => 1, 'status' => Model_Category::STATUS_ACTIVE))->sort(array('nm_en' => 1));
    	
    	foreach ($list as $category):?>
    		<?php
		if($category->status!=1){
			continue;
		}
    		if(!empty($_GET['test'])){
				echo "<pre>";
				print_r($category);
				echo "</pre>";
			}
    		//echo $category->name;
			//if($category->name=="Business Directory"){continue;} ?>
            <li><h1><a href="<?php echo $category->url()?>"><?php echo $category->name ?><em>(<?php echo number_format(intval($category->listing_count))?>)</em><span>&gt;</span></a></h1></li>
            
        <?php endforeach;
        
        
    ?>
</ul>
    </section>
   
    <?php echo $this->Partial('mobile/other.phtml', 'default'); ?>
    
    
    <?php
    /*$lvl2 = Model_Category::getLevel2(array('post_an_ad' => 1, 'status' => Model_Category::STATUS_ACTIVE))->sort(array( 'path.0'=>1, 'pos' => 1));
    foreach($lvl2 as $item){
    	echo "<pre>";
		print_r($item);
		echo "</pre><br/>----<br/>";
	}*/
    ?>
